<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>管理员控制台</title>
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">
</head>
<body>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">控制台</a>
        </div>
        <div>
            <ul class="nav navbar-nav">
                <li><a href="/control">用户管理</a></li>
                <li><a href="/context">工厂故障监测</a></li>
                <li class="dropdown active ">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        故障记录<span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="/downloadFaultInfos">导出数据</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><p class="navbar-text">{{ login_user }} 用户登录</p></li>
            <li><a href="/logout"><span class="glyphicon glyphicon-log-out"></span> 注销</a></li>
        </ul>
    </div>

</nav>

<div>
    <table class="table table-condensed;">
        <thead>
        <tr>
            <th>维修人员</th>
            <th>值班人员</th>
            <th>维修措施</th>
            <th>故障未排除原因</th>
            <th>故障日期</th>
        </tr>
        </thead>
        <tbody>
        {% for item in results %}
            <tr>
                {% for i in item %}
                    <td>{{ i }}</td>
                {% endfor %}
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
<div style="text-align: center">
    {{ paginate.links }}
</div>
<div style="text-align: center">
    <p>共查询到{{ paginate.total }}条记录 </p>
</div>
<script src="../static/js/jquery-1.10.2.js"></script>
<script src="../static/js/commonUtil.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
</body>
</html>
